home *** CD-ROM | disk | FTP | other *** search
/ Click 5 / Click 5.iso / data / game5.dat / scripts / DefineButton2_206 / BUTTONCONDACTION on(release).as
Text File  |  2002-11-22  |  988b  |  39 lines

  1. on(release){
  2.    if(10 < col and 1 < tekpos)
  3.    {
  4.       tekpos = "1";
  5.       if(col < 11)
  6.       {
  7.          count = 0;
  8.          while(count < col)
  9.          {
  10.             count = Number(count) + 1;
  11.             set("StringPos" + count,count);
  12.             set("Stringnam" + count,eval("n" + count));
  13.             set("Stringscor" + count,eval("sc" + count));
  14.          }
  15.          if(count < 10)
  16.          {
  17.             while(count < 10)
  18.             {
  19.                count = Number(count) + 1;
  20.                set("StringPos" + count,"");
  21.                set("Stringnam" + count,"");
  22.                set("Stringscor" + count,"");
  23.             }
  24.          }
  25.       }
  26.       else
  27.       {
  28.          count = 0;
  29.          while(count < 10)
  30.          {
  31.             count = Number(count) + 1;
  32.             set("StringPos" + count,count);
  33.             set("Stringnam" + count,eval("n" + count));
  34.             set("Stringscor" + count,eval("sc" + count));
  35.          }
  36.       }
  37.    }
  38. }
  39.